package com.cq.androidtools

import com.cq.androidtools.databinding.ActivityExampleBinding
import com.cq.androidtools.jetpack.databinding.DataBindingActivity


/**
 * 作者: CQ
 * 日期: 2021-08-19
 * 说明:
 */
class ExampleActivity : DataBindingActivity<ActivityExampleBinding>() {
    override fun ActivityExampleBinding.initBinding() {

        mBinding.button1.setOnClickListener {
            mBinding.itemGridText.isEnabled = false
//            mBinding.itemGridText.isFocusable = false
//            mBinding.itemGridText.isFocusableInTouchMode = false
        }

        mBinding.button2.setOnClickListener {
            mBinding.itemGridText.isEnabled = true
            mBinding.itemGridText.isFocusable = true
            mBinding.itemGridText.isFocusableInTouchMode = true
        }
    }

}